<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <title>Scopo : Academic Search engine - Index</title>
    <link href="{{ MEDIA_URL }}scopo/css/index.css" rel="stylesheet" title="basestyle" type="text/css">
    <script type="text/javascript" charset="utf-8">
      function validate_required(field) 
	  {
        with (field) 
		{
          if (value==null||value=="") { return false;} else { return true;}
        }
      }

	function validate_form(thisform) 
	{
	with (thisform) 
	{
		if (validate_required(query) == false){
      query.focus();
      return false;
    }
  }
}  
</script>
  </head>
  <body>
    
      <div id="login">
        {% if user.is_authenticated %} Welcome {{user.username}}! {% else %}
        <a href="login/" title=" ">Login</a> || <a href="scopo/register/" title=" ">Register </a> {% endif %}
      </div>

      <div id="searchbox">
		 <img border="0" src="{{ MEDIA_URL }}scopo/images/logo.jpg"/>
        <form action="/scopo/query/" onsubmit="return validate_form(this)" method="post">

          {% csrf_token %} <!-- cross-site request forgery protection -->

          <input type="text" name="query" value="" id="query" size="60">

          <input type="submit" value="Search" STYLE="font-size:10pt; background-color:00BFFF; color:ffffff" />
	
		  {% block main %}{% endblock %} <!-- placeholder block for results -->
        </form>

      </div> <!-- searchbox -->

      
      <div id="footer">

        <p>A <a href="http://hmi.ewi.utwente.nl/puppyir/" 
          title="PuppyIR: An open source environment to construct information services for children">
          PuppyIR</a> / <a href="http://www.djangoproject.com/" 
          title="Django | The Web framework for perfectionists with deadlines">Django
        </a> Product, 2011, Design by Bonson Chan, Ritesh Sinha, Somsuvra Sarkar, Shashir Bharadwaj, Sarath Somanath
        </p>

      </div>

  </body>
</html>
